package com.company.cloud.acct.modules.mgr.controller.req;

import com.company.cloud.acct.constant.AcctCashConfig;
import com.company.cloud.common.bean.BaseEntity;
import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.constant.BaseConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

@Setter
@Getter
public class CashConfigSaveParam extends BaseParam {

    @ApiModelProperty(value = "最小提现金额分类(全部/指定)")
    private String cashFundType = AcctCashConfig.CashFundType.APPOINT.getCode();

    @ApiModelProperty(value = "最小提现金额")
    private BigDecimal miniCashFund = BigDecimal.ZERO;

    @ApiModelProperty(value = "提现税点")
    private BigDecimal taxCash = BigDecimal.ZERO;

    @ApiModelProperty(value = "是否有手续费(YN)")
    private String isFee = BaseConstant.YNEnum.NO.getCode();

    @ApiModelProperty(value = "是否有免费(YN)")
    private String isFree = BaseConstant.YNEnum.YES.getCode();

    @ApiModelProperty(value = "时间间隔分类(月/年)")
    private String freeTimeIntervalType;

    @ApiModelProperty(value = "免费次数")
    private Integer freeNum;

    @ApiModelProperty(value = "每笔手续费")
    private BigDecimal fee = BigDecimal.ZERO;

}
